package com.cradom.event.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.cradom.event.dao.ChildrenDao;
import com.cradom.event.model.Children;
import com.cradom.event.service.ChildrenService;

@Service("childrenService")
public class ChildrenServiceImpl implements ChildrenService {

	@Resource
	private ChildrenDao cd;
	
	public List<Children> getChildren() {
		return cd.getChildren();
	}

	public Children getChildrenById(String id) {
		return cd.getChildrenByID(id);
	}

	public Boolean updateChildren(Children children) {
		return cd.updateChildren(children);
	}

	public Boolean deleteChildren(String id) {
		return cd.deleteChildren(id);
	}

	public Children getChildrenByUserID(String id) {
		return cd.getChildrenByUserID(id);
	}

}
